
var JSFiles =  new Array(
		"model/modelUtil.js",
		"view.model/pageSwitcher.js",
		"view.model/itemsViewModel.js",
		"view.model/userViewModel.js",
		"view.model/viewModelUtils.js",  
		"view.model/statisticsViewModel.js",  
		"view.model/bidsViewModel.js",
		"view.model/commentsViewModel.js",
		"model/staticticsModel.js",  
		"model/commentsModel.js",
		"model/bidsModel.js",
		"model/itemsModel.js",
		"model/userModel.js"
		);

//var HTMLFiles = new Array(
//		"register.html",
//		"newitem.html",
//		"itemview.html"
//		);

function includeJSFiles(){
	var randomNum = '?' + Math.random();
for(var i = 0; i < JSFiles.length; i++){
	var script = document.createElement('script');
	script.setAttribute("src", JSFiles[i] + randomNum);
	document.head.appendChild(script);
}
}

includeJSFiles();

//function loadHTMLFiles(){
//	for(var i = 0; i < HTMLFiles.length; i++){
//		fire("GET",HTMLFiles[i],null);
//	}
//}
//
//setTimeout(function() {
//	loadHTMLFiles();
//},250);
